package com.tree.backend.service.impl;

import com.tree.backend.entity.pojo.PartyMember;
import com.tree.backend.entity.vo.MemberComposition;
import com.tree.backend.mapper.PartyMemberMapper;
import com.tree.backend.service.IPartyMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 党员基本信息表，记录党员的个人信息和工作情况 服务实现类
 * </p>
 *
 * @author tree
 * @since 2025-10-15
 */
@Service
@RequiredArgsConstructor
public class PartyMemberServiceImpl extends ServiceImpl<PartyMemberMapper, PartyMember> implements IPartyMemberService {

    private final PartyMemberMapper partyMemberMapper;
    @Override
    public List<MemberComposition> getComposition() {
        return partyMemberMapper.getComposition();
    }
}
